<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::rule('test','Test/index');
Route::rule('game/:tpurl','Game/:tpurl');
Route::rule('game','Game/gameList');
Route::rule('role/:tpurl','Role/:tpurl');
Route::rule('role','Role/roleList');
Route::rule('gameattr/:tpurl','GameAttr/:tpurl');
Route::rule('gameattr','GameAttr/gameAttrList');
Route::rule('roleattr/:tpurl','RoleAttr/:tpurl');
Route::rule('roleattr','RoleAttr/roleAttrList');
Route::rule('event/:tpurl','Event/:tpurl');
Route::rule('event','Event/getList');
Route::rule('game_txt/:tpurl','GameTxt/:tpurl');
Route::rule('game_txt','GameTxt/getList');
Route::rule('py','Py/index');

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hello');
